
[#include "single/layout/layout02/layout.ftl"/]
[@htmlHead]

[/@htmlHead]

[@htmlBody]
<div class="row">
    <div class="col-xs-12">
        <ul class="nav nav-tabs ">
            <li>
                <a href="${base}/mail/template/view/index">
                    邮件模板列表
                </a>
            </li>
            <li class="active"><a href="javascript:void(0)">邮件模板增加</a></li>
        </ul>
    </div>
</div>
<div class="row">
    <div class="col-xs-12">

        <form class="form-horizontal" action="${base}/mail/view/toTemplate" method="post" id="editForm">
            <input type="hidden" name="id" value="${mailTemplate.id}"/>

            <div class="form-group">
                <label class="col-xs-10 col-sm-4 control-label "><span class="required">*</span>模板名称</label>

                <div class="col-xs-10 col-sm-4  ">
                    <input name="name" value="${mailTemplate.host}" placeholder="模板别名"
                           class="form-control input-large"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-10 col-sm-4 control-label "><span class="required">*</span>文件名称</label>

                <div class="col-xs-10 col-sm-4  ">
                    <input name="fileName" value="${mailTemplate.fileName}" placeholder="文件名称,英文不带格式"
                           class="form-control input-large"/>
                </div>
            </div>


            <div class="form-group">
                <div id="editAlert" class="" style="min-width:550px"></div>
                <label class="col-xs-10 col-sm-4 control-label ">模板格式</label>

                <div class="col-xs-10 col-sm-4  ">

                    <input name="format" value="${mailTemplate.format}" placeholder="模板格式"
                           class="form-control input-large"/>


                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-10 col-sm-4 control-label ">文件</label>

                <div class="col-xs-10 col-sm-4  ">
                    <input type="file" class="form-control input-large"/>
                </div>
            </div>

            <div class="form-group">
                <label class="col-xs-10 col-sm-4 control-label ">描述</label>

                <div class="col-xs-10 col-sm-4  ">
                    <textarea class="form-control input-large" name="description" id="description"
                              style="text-align: left;">${mailAccount.description}</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class=" col-xs-10 col-sm-4  control-label"></label>

                <div class="col-xs-10 col-sm-4 " align="center">
                    <input type="button" class="btn btn-info btn-sm" value="确定"
                           onclick="doMailAccountSubmit('${operateType}')"/>
                    <input type="button" onclick="tools.goto('${base}/mail/account/view/index')"
                           class="btn btn-cancle btn-sm" value="返回"/>
                </div>
            </div>
        </form>

    </div>
</div>
[/@htmlBody]

[@htmlFoot]
    [#include "common/validate.ftl"/]
<script src="${jpath}/assets/public/plugins/dialog/bootbox.js" type="text/javascript"></script>
<script src="${base}/plugins/single/js/module/app/app.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
    });

</script>


[/@htmlFoot]